package com.doge.service.admin.admin;

import com.doge.bean.base.BaseData;
import com.doge.bean.base.BaseParam;
import com.doge.bean.pojo.admin.Admin;
import com.doge.exception.Delete502Exception;
import com.doge.exception.Param402Exception;

import javax.servlet.http.HttpServletRequest;

/**
 * @program: doge
 * @description:
 * @author: Keyu Li
 * @create: 2021-11-29 20:42
 **/

public interface AdminService {
    BaseData list(BaseParam param, String username);

    void create(Admin admin, HttpServletRequest request) throws Param402Exception, Exception;

    void update(Admin admin, HttpServletRequest request) throws Param402Exception, Exception;

    void delete(Admin admin, HttpServletRequest request) throws Delete502Exception, Exception;
}
